package cn.homework.dao;

import cn.homework.domain.Product;

import java.util.List;
import java.util.Map;

/**
 * @author ACT
 */
public interface CommodityDao {
    void addCommodity(Product product);

    List<Product> findAllCommodity();

    void delCommodityById(String id);

    Product findCommodityById(String id);

    void updateCommodity(String id, Product product);

    List<Product> findCommodityCondition(Map<String, String[]> map);
}
